﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>


<div class="layout-cols2">
<div class="col1">

    <div  class="box">
        <div class="content">
          <%csharp%>string tmpStr = this.GetCondStr(this.cond) ; if(tmpStr.Length > 0) { <%/csharp%>
          <label>您的搜索条件：</label>&nbsp;<font color="blue">{tmpStr}</font>					  
          <%csharp%>} else {<%/csharp%>
          所有圈子
          <%csharp%>} <%/csharp%>
          <%csharp%>TempUrl = "/Group/Index.aspx" ;<%/csharp%>
          &nbsp;&nbsp;&nbsp;<a href="{this.GetUrl(TempUrl)}">返回继续操作</a>		
        </div>  			  
    </div>	

<div class="box">
<div class="grouplist" id="allgroups" style="display:block;">
<%csharp%>if(GroupList.Count==0){<%/csharp%>
<h1>找不到相应的圈子！</h1>

<%csharp%>}else{<%/csharp%>
        <%csharp%>
        int j = 0;
        foreach(GroupInfo item in GroupList) { 

        <%/csharp%> 
        <%csharp%>if(j > 0 && j % 3 == 0) { <%/csharp%>        
            <div class="line"></div>
        <%csharp%> } <%/csharp%>
        <div class="groupbox">
            <%csharp%>TempUrl = "/Group/Group.aspx?gid=" + item.Id;<%/csharp%>
            <a href="{this.GetUrl(TempUrl)}" target="_blank">
                <img class="pic" src="{item.Logo}" />
            </a>
            <dl>
                <dd><strong>
                <%csharp%>TempUrl = "/Group/Group.aspx?gid=" + item.Id;<%/csharp%>
                <a href="{this.GetUrl(TempUrl)}" target="_blank">{item.GroupName}</a>
                </strong><em>({item.UserNum}人)</em></dd>
                
                <dd>帖子数：{item.PostNum} &nbsp;&nbsp; 点击量：{item.Hits}</dd>
                 <%csharp%>if(item.ProvinceName==""&&item.CityName==""){<%/csharp%>
            <dt>地区：未知</dt>
             <%csharp%>}else{<%/csharp%>
            <dt>
                地区：{item.ProvinceName}&nbsp;{item.CityName}
            </dt>
              <%csharp%>}<%/csharp%>
                
            </dl>
        </div>
        <%csharp%> j++; } <%/csharp%>

        <div style="clear:both;"></div>
	        <div style="padding:10px;">
		        <div class="pages">
			        {PagingString}
		        </div>
	        </div>
<%csharp%>}<%/csharp%>
 </div>  
 
   
</div>

</div>

<div class ="col2">
  <%template _GroupLattest%> 
  <%template _GroupHottest%> 
</div>

</div>

<%template _footer%>